/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.cezary.butler.walili.server.db.utils;

/**
 *
 * @author Czarek
 */
public class UnitInterruptedException extends Exception{
    public static boolean isInterrupted() throws UnitInterruptedException {
        if (Thread.currentThread().isInterrupted()) {
            throw new UnitInterruptedException();
        } else {
            return false;
        }
    }
}
